public class CharToString {
    public static void main(String[] args) {
        char myChar = 'g';
        String myStr = Character.toString(myChar); // 字符转为字符串
        System.out.println("String is: "+myStr);
    }
}